package com.example.demo.controller;

import com.example.demo.entity.users;
import com.example.demo.mapper.usersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class usersController {
    @Autowired
    usersMapper usersMapper;
    @GetMapping("/selectuser/{user}")
    public users selectuser(@PathVariable("user") String user){
        return usersMapper.selectUserByuser(user);
    }
}
